package com.zhang.cn;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@EnableAutoConfiguration
@Controller
public class findex {
	@RequestMapping("/res")
	public String res(Map<String, Object> resultMap) {
		System.out.println("findex..index");
		resultMap.put("name", "张三");
		resultMap.put("sex", 1);
		List<String> list=new ArrayList<String>();
		list.add("张三");
		list.add("李四");
		resultMap.put("list", list);
		return "index";
	}
	public static void main(String[] args) {
		SpringApplication.run(findex.class, args);
	}
}
